<?php

/**
 * @package examples
 */

require 'Zend/Log.php';
require 'Zend/Log/Writer/Stream.php';
require 'Zend/Config/Ini.php';

// notre application fonctionne en mode 'dev'
define ('APP_MODE', 'dev');

$log = new Zend_log();

// chargement de la section appropriée
$configFile = dirname(__FILE__) . '/zend_log-zend_config.ini';
$config     = new Zend_Config_Ini($configFile, APP_MODE);

$writer = new Zend_Log_Writer_Stream($config->logfile);

$log->addWriter($writer);